package com.panshi.modules.system.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 功能表 
 * </p>
 *
 * @author 小伍
 * @since 2020-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BeiSysFunction对象", description="功能表 ")
public class BeiSysFunction implements Serializable,Comparable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "功能id")
    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;

    @ApiModelProperty(value = "url")
    private String url;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "具体操作")
    private String operate;

    @ApiModelProperty(value = "父类id")
    private Integer pid;

    @ApiModelProperty(value = "10菜单 20功能")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    private List<BeiSysFunction> children;

    private Integer state;


    @Override
    public int compareTo(Object o) {
        return 0;
    }
}
